import requests


# url1 = "https://club.jd.com/comment/productPageComments.action?callback=fetchJSON_comment98vv29&productId=10516572711&score=0&sortType=5&page={}&pageSize=10"
# url2 = "https://club.jd.com/comment/productPageComments.action?callback=fetchJSON_comment98vv29&productId=10516572711&score=0&sortType=5&page={}&pageSize=10"
#
#
# url1_req = url1.format(1000)
# url2_req = url2.format(1001)
#
# c1 = requests.get(url1_req).text
# c2 = requests.get(url2_req).text
# print(c1 == c2)
import matplotlib
current_url = "https://club.jd.com/comment/productPageComments.action?productId=10516572711&score=0&sortType=5&page=201&pageSize=10"
current_page = current_url.split("&")[3].split("=")[1]
itemid = current_url.split("?")[1].split("&")[0].split("=")[1]
print(itemid)
print(current_page)